package com.hxwb.robot.dao;

import com.hxwb.robot.entity.LoginEntity;
import com.hxwb.robot.entity.RobotEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface LoginDao extends JpaRepository<LoginEntity, Integer> {

    @Query(value = "select * from login where username = ?1  and password = ?2", nativeQuery = true)
    LoginEntity login(String username,String password);
}
